package design.decorate;

public class Borrow implements Decorate{ //装饰模式之借阅
	private Decorate decorate;
	
	public Borrow(Decorate decorate){
		this.decorate = decorate;
	}
	@Override
	public void borrow(String name) {
		decorate.borrow(name);
	}

}
